package com.wei.czz.common.vo.blog.tag;

import com.wei.czz.common.constant.RedisConstant;
import com.wei.czz.common.vo.common.BaseVo;
import lombok.Getter;
import lombok.Setter;

import java.util.concurrent.ThreadLocalRandom;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2021-05-15 22:12:00
 * className: TagFormVo 博客标签请求表单Vo类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class TagFormVo extends BaseVo {

    /**
     * 获取博客标签分页列表对应的Redis-String缓存键
     */
    public String getSystemTagListKey() {
        return RedisConstant.STRING + RedisConstant.SYSTEM_TAG_LIST + RedisConstant.SPLIT + word + RedisConstant.SPLIT
                + status + RedisConstant.SPLIT + page + RedisConstant.SPLIT + limit  + RedisConstant.SPLIT + field
                + RedisConstant.SPLIT + order + RedisConstant.SPLIT + ThreadLocalRandom.current().nextInt(3);
    }

}
